package com.atguigu.spzx.model.vo.system;

import lombok.Getter;

@Getter //获取getter方法
public enum ResultCodeEnum {

    LOGIN_SUCCESS(200,"登录成功！"),
    LOGIN_ERROR(201,"用户名或者密码错误"),

    LOGOUT_SUCCESS(200,"退出成功！"),

    RESPONSE_SUCCESS(200,"响应成功"),

    NULL_ERROR(500,"集合为空");

    private Integer code;       // 业务状态码
    private String message;     // 响应消息

    ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
